package com.ruoyi.show.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 出版社数据对象 publisher_stats
 * 
 * @author ruoyi
 * @date 2025-09-08
 */
public class PublisherStats extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 出版社 */
    @Excel(name = "出版社")
    private String publisher;

    /** 书籍数量 */
    @Excel(name = "书籍数量")
    private Long bookCount;

    /** 平均价格 */
    @Excel(name = "平均价格")
    private BigDecimal avgPrice;

    /** 平均评论数 */
    @Excel(name = "平均评论数")
    private Long avgComment;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPublisher(String publisher) 
    {
        this.publisher = publisher;
    }

    public String getPublisher() 
    {
        return publisher;
    }

    public void setBookCount(Long bookCount) 
    {
        this.bookCount = bookCount;
    }

    public Long getBookCount() 
    {
        return bookCount;
    }

    public void setAvgPrice(BigDecimal avgPrice) 
    {
        this.avgPrice = avgPrice;
    }

    public BigDecimal getAvgPrice() 
    {
        return avgPrice;
    }

    public void setAvgComment(Long avgComment) 
    {
        this.avgComment = avgComment;
    }

    public Long getAvgComment() 
    {
        return avgComment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("publisher", getPublisher())
            .append("bookCount", getBookCount())
            .append("avgPrice", getAvgPrice())
            .append("avgComment", getAvgComment())
            .toString();
    }
}
